<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>" />

<title>
全部公告
</title>

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<script type="text/javascript" src="js/jquery-1.6.js"></script>

<link rel="stylesheet" href="css/four.css" type="text/css"></link>
</head>
<body>
<div id="Proclaim_list">
<div class="topTitle">
	<img src="images/main_28.gif"/> &nbsp;公告信息
</div>
	<br />
<div id="main" style="text-align: center">
<table width="95%" class="table01">
			 		 <tr> 
			    		<td  class="td_top" align="left" colspan="9" >  
			    			公司公告
			    		</td>
			  		</tr>
					<tr class="td_title">
					<td class="td_scheduleList_top"  align="left" width="20%">
					主题
					</td>
					<td class="td_scheduleList_top">
					&nbsp;&nbsp;&nbsp;
					</td>
					<td class="td_scheduleList_top">发布者</td>
					<td class="td_scheduleList_top">&nbsp;&nbsp;&nbsp;</td>
					<td class="td_scheduleList_top">发布时间</td>
					<td class="td_scheduleList_top">&nbsp;&nbsp;&nbsp;</td>
					<td class="td_scheduleList_top">公告状态</td>
					<td class="td_scheduleList_top">&nbsp;&nbsp;&nbsp;</td>
					<td class="td_scheduleList_top">
					操作
					</td>
				</tr>
				<s:if test="proclaims !=null">
				<s:iterator value="proclaims">
				<tr class="td_content">
					<td class="td_01" align="left"><img src="images/main_30.gif"/>&nbsp;&nbsp;<a href="getDetail?id=<s:property value="id"/>"><s:property value="title" /> </a></td>
					<td class="td_01">&nbsp;&nbsp;&nbsp;</td>
					<td class="td_01"><s:property value="employee.userName"/> </td>
					<td class="td_01">&nbsp;&nbsp;&nbsp;&nbsp;</td>
					<td class="td_01">
					<s:date name="createtime" format="yyyy-MM-dd"/>
					
					</td>
					<td class="td_01">&nbsp;&nbsp;&nbsp;</td>
					<td class="td_01">
					<s:if test="status==0">
						有效
					</s:if>
					<s:if test="status==1">
						已过期
					</s:if>
					</td>
					<td class="td_01">&nbsp;&nbsp;&nbsp;</td>
					<td class="td_01">
					<a href="updateProclaim?id=<s:property value="id"/>">修改</a>
					</td>
				</tr>
				</s:iterator>
				</s:if>
				<s:if test="proclaims==null">
					<tr>
						<td colspan="5">暂时没有任何公告</td>
					</tr>
				</s:if>
			</table>
			<br />
				<div align="right">
	<a href="getAllProclaims?pb.currentPage=1">首页</a>
	<s:if test="pb.getPrew()">
	<a href="getAllProclaims?pb.currentPage=${ pb.currentPage-1}">上一页</a>
	</s:if>
	<s:else>
		上一页
	</s:else>
	<s:if test="pb.getNext()">
	 <a href="getAllProclaims?pb.currentPage=${ pb.currentPage+1}">下一页</a>
	 </s:if>
	 <s:else>
	 	下一页
	 </s:else>
	 <a href="getAllProclaims?pb.currentPage=${pb.last}">末页</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	</div>
			</div>
		</div>
	</body>
</html>
